<?php

namespace app\privatearea\controller\mall\v1;

use app\privatearea\controller\MallAuth;

class User extends MallAuth
{
    /**
     * 个人中心
     * @return \think\response\Json
     */
    public function center()
    {
        $resData = [
            'avatar' => '/private_area/pri_mall_avatar.png',
            'nickname' => preg_replace('/(1[3456789]{1}[0-9])[0-9]{4}([0-9]{4})/i', '$1****$2', $this->privateAreaMallUserInfo['tel']),
        ];
        
        return show(config('code.success'), '请求成功', $resData);
    }

}